package com.medical.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.medical.manage.domain.Appraise;
import com.medical.manage.domain.Order;
import com.medical.manage.domain.vo.AppraiseVo;
import jdk.nashorn.internal.ir.annotations.Reference;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Reference
public interface AppraiseMapper extends BaseMapper<Appraise> {
    /**
     * 评价医生
     * @param appraiseVo
     */
    void appraiseDoctor(AppraiseVo appraiseVo);

    /**
     * 患者评价
     * @param userId
     * @return
     */
    List<AppraiseVo> getPatientAppraise(@Param("userId") Long userId);

    /**
     * 查询订单信息
     * @param patientId
     * @param doctorId
     * @return
     */
    Order selectOrder(@Param("patientId") Long patientId, @Param("doctorId") Integer doctorId);

    /**
     * 医生回复
     * @param doctorId
     * @param patientId
     * @param replyContent
     */
    void addReplyContent(@Param("doctorId") Integer doctorId, @Param("patientId") Long patientId, @Param("replyContent") String replyContent,@Param("replyTime") Date replyTime);

}
